#@layout()
#define main()
<h1>User管理&nbsp;&nbsp;
    <a href="add">创建用户</a>
</h1>
<div class="table_box">
    <table class="list">
        <tbody>
        <tr>
            <th width="4%">编号</th>
            <th width="10%">用户名</th>
            <th width="10%">性别</th>
            <th width="10%">昵称</th>
            <th width="10%">密码</th>
            <th width="10%">姓名</th>
            <th width="12%">操作</th>
        </tr>

        #for(x : userPage.getList())
        <tr>
            <td style="text-align:center;" width="4%">#(x.id)</td>
            <td style="text-align:center;" width= 10%>#(x.username)</td>
            <td style="text-align:center;" width= 10%>#(x.sexname)</td>
            <td style="text-align:center;" width= 10%>#(x.nicename)</td>
            <td style="text-align:center;" width= 10%>#(x.password)</td>
            <td style="text-align:center;" width= 10%>#(x.name)</td>
            <td style="text-align:center;" width=12%>
                &nbsp;&nbsp;<a href="delete/#(x.id)">删除</a>
                &nbsp;&nbsp;<a href="edit/#(x.id)">修改</a>
            </td>
        </tr>
        #end
        </tbody>
    </table>
    #@paginate(userPage.pageNumber, userPage.totalPage, "")
</div>
#end
